#ifndef ADDCOMMAND_H
#define ADDCOMMAND_H

#include <QUndoCommand>
#include <QPointF>

class QGraphicsScene;
class QGraphicsItem;

class AddCommand : public QUndoCommand
{
public:
    AddCommand(bool itemType, int size, QPointF scenePos, QGraphicsScene *scene);
    ~AddCommand();

    void undo();
    void redo();

private:
    QGraphicsItem *item;
    QGraphicsScene *scene;
    QPointF scenePos;
};

#endif // ADDCOMMAND_H
